home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre4.z / postgre4 / src / storage / ipc / README < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.5 KB  |  32 lines

  1. $Header: /private/postgres/src/storage/ipc/RCS/README,v 1.4 1989/10/05 15:08:06 cimarron Exp $
  2. Mon Jul 18 11:09:22 PDT 1988  W.KLAS
  3.  
  4. Cache invalidation synchronization routines:
  5. ===========================================
  6.  
  7. The cache synchronization is done using a message queue. Every
  8. backend can register a message which then has to be read by
  9. all backends. A message read by all backends is removed from the 
  10. queue automatically. If a message has been lost because the buffer
  11. was full, all backends that haven't read this message will be
  12. noticed that they have to reset their cache state. This is done
  13. at the time when they try to read the message queue.
  14.  
  15. The message queue is implemented as a shared buffer segment. Actually,
  16. the queue is a circle to allow fast inserting, reading (invalidate data) and
  17. maintaining the buffer.
  18.  
  19. Access to this shared message buffer is synchronized by the lock manager.
  20. The lock manager treats the buffer as a regular relation and sets
  21. relation level locks (with mode = LockWait) to block backends while 
  22. another backend is writing or reading the buffer. The identifiers used
  23. for this special 'relation' are database id = 0 and relation id = 0.
  24.  
  25. The current implementation prints regular (e)log information
  26. when a message has been removed from the buffer because the buffer 
  27. is full, and a backend has to reset its cache state. The elog level
  28. is NOTICE. This can be used to improve teh behavior of backends
  29. when invalidating or reseting their cache state.
  30.  
  31.  
  32.